<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="follow, index" />
<meta name="author" content="iune co." />
<meta name="description"
	content="IUNE有最好的库存管理SaaS软件。以更快更高的准确度，跟进实时数据的访问和库存移动。" />
<meta name="keywords"
	content="库存, 存货管理, 库存管理, 仓库管理, 云ERP, 云逸ERP, 中小型企业云ERP, SaaS ERP软件/系统" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>


<style type="text/css">
td {
	padding: 0px;
	width: 100px;
}

</style>

</head>
<body>



	<div class="container-fluid">

		<div class="row">
			<div class="col-sm-12 col-content">

	<h3>
												<button type="button" class="btn btn-default "
													data-ng-click="Model.goBack()">
													<span class="glyphicon glyphicon-arrow-left"></span> 返回
												</button>
		功能菜单<small>建立应用树、导航菜单。</small>
	</h3>
	<hr>
			
				<nav class="nav">
					<ul class="pagination navbar-left buttonBar">
								<li>
									<div class="btn-group" role="toolbar">
										<!-- Split button -->
										<div class="btn-group">
											<button type="button" class="btn btn-info "
												data-ng-disabled="!dataSysInfo.readonly()"
												data-ng-click="Model.addRoot();">
												<span class="glyphicon glyphicon-plus"></span> 新建应用
											</button>
											  <button type="button" class="btn btn-info dropdown-toggle" 
												  data-ng-disabled="!dataSysInfo.readonly()"
												  data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
											    <span class="caret"></span>
											    <span class="sr-only">Toggle Dropdown</span>
											  </button>
											  <ul class="dropdown-menu">
											    <li><a href="" data-ng-disabled="dataSysInfo.currentIndex==null" data-ng-click="Model.addChild('fun');">新建功能</a></li>
											    <li><a href="" data-ng-disabled="dataSysInfo.currentIndex==null" data-ng-click="Model.addChild('pag');">新建页面</a></li>
											    <li><a href="" ng-if="false" data-ng-disabled="dataSysInfo.currentIndex==null" data-ng-click="Model.addChild('act');">新建动作</a></li>
											    <li role="separator" class="divider"></li>
											    <li><a href="" data-ng-click="Model.addRoot()">新建应用</a></li>
											  </ul>
										</div>
										<!-- Split button结束 -->
										<button type="button" class="btn btn-default"
											data-ng-disabled="dataSysInfo.currentIndex==null"
											data-ng-show="dataSysInfo.readonly()"
											data-ng-click="Model.edit();">
											<span class="glyphicon glyphicon-edit"></span> 修改
										</button>
										<button type="button" class="btn btn-success "
											data-ng-show="!dataSysInfo.readonly()"
											data-ng-click="Model.save();">
											<span class="glyphicon glyphicon-floppy-save"></span> 保存
										</button>
										<button type="button" class="btn btn-warning "
											data-ng-show="!dataSysInfo.readonly()"
											data-ng-click="Model.saveCancel();">
											<span class="glyphicon glyphicon-floppy-open"></span> 取消
										</button>
										<button type="button" class="btn btn-default"
											data-ng-show="dataSysInfo.readonly()"
											data-ng-disabled="!dataSysInfo.readonly() || dataSysInfo.currentIndex==null"
											data-ng-click="Model.remove()">
											<span class="glyphicon glyphicon-trash"></span> 删除
										</button>
										<button type="button" class="btn btn-default"
											data-ng-disabled="!dataSysInfo.readonly()"
											data-ng-click="Model.refresh()">
											<span class="glyphicon glyphicon-refresh"></span> 刷新
										</button>
								<button type="button" class="btn btn-danger"
									data-ng-disabled="!dataSysInfo.readonly()"
									data-ng-click="Model.move()">
									<span class="glyphicon glyphicon-transfer"></span> 移动页面
								</button>
										<!-- Split button -->
										<div class="btn-group">
										<button type="button" class="btn btn-warning"
											data-ng-disabled="!dataSysInfo.readonly()"
											data-ng-click="Model.sort()">
											<span class="glyphicon glyphicon-sort"></span> 排序
										</button>
											  <button type="button" class="btn btn-warning dropdown-toggle" 
												  data-ng-disabled="!dataSysInfo.readonly()"
												  data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
											    <span class="caret"></span>
											    <span class="sr-only">Toggle Dropdown</span>
											  </button>
											  <ul class="dropdown-menu">
											    <li><a href="" data-ng-click="Model.sort('root');">根节点排序</a></li>
											  </ul>
										</div>
										<!-- Split button结束 -->
										<button type="button" class="btn btn-info"
											data-ng-disabled="!dataSysInfo.readonly()"
											data-ng-click="Model.setBillType()"
											data-ng-show="dataSysInfo.rows[dataSysInfo.getCurrentIndex()].systemKind.value=='app'"
											>
											<span class="glyphicon glyphicon-move"></span> 单据配置参数设置
										</button>
									</div>
								</li>
					</ul>

						<query-like data="dataSysInfo" place-holder="模糊查询..."></query-like>

				</nav>

			</div>
		</div>
		
		
		<div class="row">
			<div class="col-sm-4 col-content">
							
				
				
				<div>
					<div tree-view tree-data="dataSysInfo" 
						checkbox-show="false"
						text-field="systemName" 
						value-field='fID' 
						parent-field='fParent'
						level-field='nodeLevel' 
						kind-field='nodeKind' 
						icon-expression="{'fa-cubes':row.systemKind.value=='app','fa-cube':row.systemKind.value=='fun','fa-list-alt':row.systemKind.value=='pag','fa-hdd-o':row.systemKind.value=='act'}"
						sub-height='200'
					>
					</div>
				</div>
			</div>
			<div class="col-sm-8 col-content">
				<form class="form-horizontal" name="inventory_fileStorage_single_form">

					<div class="form-group form-group-sm">
						<label 
							class="col-sm-3 control-label">appId</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								data-ng-model="dataSysInfo.rows[dataSysInfo.currentIndex].appId.value"
								data-ng-readonly="true"
								placeHolder="自动编码" name="appId">
						</div>
					</div>
					<div class="form-group form-group-sm">
						<label 
							class="col-sm-3 control-label">appName</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								data-ng-model="dataSysInfo.rows[dataSysInfo.currentIndex].appName.value"
								data-ng-readonly="true"
								placeHolder="自动编码" name="appName">
						</div>
					</div>
					<div class="form-group form-group-sm" data-ng-show="false">
						<label 
							class="col-sm-3 control-label">fID</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								data-ng-model="dataSysInfo.rows[dataSysInfo.currentIndex].fID.value"
								data-ng-readonly="true"
								placeHolder="自动编码" name="fID">
						</div>
					</div>
					<div class="form-group form-group-sm">
						<label 
							class="col-sm-3 control-label">代码</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								data-ng-model="dataSysInfo.rows[dataSysInfo.currentIndex].systemCode.value"
								data-ng-readonly="dataSysInfo.readonly();"
								placeHolder="自动编码" name="systemCode">
						</div>
					</div>
					<div class="form-group form-group-sm has-warning">
						<label class="col-sm-3 control-label">名称</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								data-ng-model="dataSysInfo.rows[dataSysInfo.currentIndex].systemName.value"
								name="systemName" data-ng-readonly="dataSysInfo.readonly();">
						</div>
					</div>
					<div class="form-group form-group-sm has-warning">
						<label class="col-sm-3 control-label">简称</label>
						<div class="col-sm-9">
							<input type="text" class="form-control" placeholder="2-3个汉字"
								data-ng-model="dataSysInfo.rows[dataSysInfo.currentIndex].shortName.value"
								name="shortName" data-ng-readonly="dataSysInfo.readonly();">
						</div>
					</div>
					<div class="form-group form-group-sm" data-ng-show="false">
						<label 
							class="col-sm-3 control-label">全路径ID</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								data-ng-model="dataSysInfo.rows[dataSysInfo.currentIndex].systemFullID.value"
								data-ng-readonly="true"
								name="systemFullID">
						</div>
					</div>
					<div class="form-group form-group-sm" data-ng-show="false">
						<label 
							class="col-sm-3 control-label">全路径编码</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								data-ng-model="dataSysInfo.rows[dataSysInfo.currentIndex].systemFullCode.value"
								data-ng-readonly="true"
								name="systemFullCode">
						</div>
					</div>
					<div class="form-group form-group-sm" data-ng-show="false">
						<label 
							class="col-sm-3 control-label">全路径名称</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								data-ng-model="dataSysInfo.rows[dataSysInfo.currentIndex].systemFullName.value"
								data-ng-readonly="true"
								name="systemFullName">
						</div>
					</div>
					<div class="form-group form-group-sm" data-ng-show="false">
						<label class="col-sm-3 control-label">父ID</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								data-ng-model="dataSysInfo.rows[dataSysInfo.currentIndex].fParent.value"
								data-ng-readonly="true"
								name="fParent">
						</div>
					</div>
					<div class="form-group form-group-sm" data-ng-show="false">
						<label class="col-sm-3 control-label">nodeKind</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								data-ng-model="dataSysInfo.rows[dataSysInfo.currentIndex].nodeKind.value"
								data-ng-readonly="true"
								name="fParent">
						</div>
					</div>
					<div class="form-group form-group-sm" data-ng-show="false">
						<label class="col-sm-3 control-label">nodeLevel</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								data-ng-model="dataSysInfo.rows[dataSysInfo.currentIndex].nodeLevel.value"
								data-ng-readonly="true"
								name="fParent">
						</div>
					</div>
					<div class="form-group form-group-sm" data-ng-show="true">
						<label class="col-sm-3 control-label">排序</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								data-ng-model="dataSysInfo.rows[dataSysInfo.currentIndex].sortNo.value"
								data-ng-readonly="true"
								name="fParent">
						</div>
					</div>
					
				<div class="form-group form-group-sm has-warning">
					<label  class="col-sm-3 control-label">类型</label>
					<div class="col-sm-9">
						<select class="form-control" data-ng-init="dataSystemKind.rows=[{systemKind:'app',systemKindLabel:'应用'},{systemKind:'fun',systemKindLabel:'功能'},{systemKind:'pag',systemKindLabel:'页面'},{systemKind:'act',systemKindLabel:'动作'}]" 
							data-ng-options="o.systemKind as o.systemKindLabel for o in dataSystemKind.rows"
							data-ng-model="dataSysInfo.rows[dataSysInfo.currentIndex].systemKind.value"
							data-ng-disabled="true"
							name="systemKind" required
							>
							
							<option value=''>-- 选择类型 --</option>
						</select>
					</div>
				</div>
	
					<div class="form-group form-group-sm">
						<label class="col-sm-3 control-label">路径</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								data-ng-model="dataSysInfo.rows[dataSysInfo.currentIndex].absoluteUrl.value"
								data-ng-readonly="dataSysInfo.readonly()"
								>
						</div>
					</div>
					<div 
					data-ng-show="dataSysInfo.rows[dataSysInfo.getCurrentIndex()].systemKind.value=='pag'"
					class="form-group form-group-sm">
						<label 
							class="col-sm-3 control-label">显示菜单</label>
						<div class="col-sm-9">
							<input type="checkbox" class="form-control switch"
								data-ng-model="dataSysInfo.rows[dataSysInfo.currentIndex].sDisplay.value"
								bootstrap-switch data-size="small"
								can-input="dataSysInfo.readonly()"
								data-ng-true-value="'Y'" data-ng-false-value="'N'"/>
						</div>
					</div>
					<div class="form-group form-group-sm">
						<label 
							class="col-sm-3 control-label">启用</label>
						<div class="col-sm-9">
							<input type="checkbox" class="form-control switch"
								data-ng-model="dataSysInfo.rows[dataSysInfo.currentIndex].status.value"
								bootstrap-switch data-size="small"
								can-input="dataSysInfo.readonly()"
								data-ng-true-value="'open'" data-ng-false-value="'close'"/>
						</div>
					</div>

					<div class="form-group">
						<label 
							class="col-sm-3 control-label">描述</label>
						<div class="col-sm-9">
							<textarea rows="5" class="form-control"
								data-ng-model="dataSysInfo.rows[dataSysInfo.currentIndex].systemDescribe.value"
								data-ng-readonly="dataSysInfo.readonly();">
							</textarea>
							<wysiwyg-edit content="dataSysInfo.rows[dataSysInfo.currentIndex].systemDescribe.value" config="editorConfig" api="api" tag-name="tagName"></wysiwyg-edit>
							
						</div>
					</div>

					<div class="form-group form-group-sm" hidden="hidden">
						<label 
							class="col-sm-3 control-label">版本</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								data-ng-model="dataSysInfo.rows[dataSysInfo.currentIndex].version.value"
								>
						</div>
					</div>
					
					
				</form>

			</div>

		</div>


	</div>





</body>

</html>

